package ArrayTest10_13;

public class Test05 {
    public static void main(String[] args) {
        //定义一个double类型的数组，长度是8，求数组中所有数的积
        double[] arr = new double[8];
        int add = 1;
        for (int i = 1; i <= arr.length; i++) {
            arr[i]= i;
            add *= arr[i];
            System.out.println(add);
        }

    }
}
